var fanQieMF = require("../app/fanqieMF/getIt");
var fanQieCT = require("../app/fanqieCT/getIt");
var fanQieYY = require("../app/fanqieYY/getIt");
var { appUtils } = require("../utils/index");

function main(type) {
  if (type == 1) {
    var installed = appUtils.checkInstall("番茄免费小说");
    if (installed) {
      fanQieMF();
    }
  }
  if (type == 2) {
    var installed = appUtils.checkInstall("番茄畅听");
    if (installed) {
      fanQieCT();
    }
  }
  if (type == 3) {
    var installed = appUtils.checkInstall("番茄畅听音乐版");
    if (installed) {
      fanQieYY();
    }
  }
}

Wang.main = main;
